package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/** 信息分配（销售经理）
 * 
 * 信息接收者：员工   
 * @author sinser张
 **/
@Entity
@Table(name = "sl_crm_chanceManager")
public class ChanceManagerDelivery extends Root{
	   /**
	    * 信息接收者类型 
	    * 1:协助信息     0：本部信息
	    **/
		@Column(name="nTargetType")
	   private int targetType;
		
		/**
		 * 员工是否接收该信息 
		 * 1:接收信息     0：未接收信息
		 **/
	    @Column(name="nIsReceived")
		private int isReceived;
			
		/**SaleChance_id */
		@ManyToOne
		@JoinColumn(unique = false)
		private Chance saleChance;
		
		/**
		 * 信息接收人员
		 * user_id 
		 * */
		@ManyToOne
		@JoinColumn(unique = false)
		private User user;

		public int getTargetType() {
			return targetType;
		}

		public void setTargetType(int targetType) {
			this.targetType = targetType;
		}

		public int getIsReceived() {
			return isReceived;
		}

		public void setIsReceived(int isReceived) {
			this.isReceived = isReceived;
		}

		public Chance getSaleChance() {
			return saleChance;
		}

		public void setSaleChance(Chance saleChance) {
			this.saleChance = saleChance;
		}

		public User getUser() {
			return user;
		}

		public void setUser(User user) {
			this.user = user;
		}
		
		
}
